<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>测试123列表页</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="/demo/Public/css/vendor/bootstrap.min.css" rel="stylesheet">
    <link href="/demo/Public/css/flat-ui.min.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="/demo/Public/js/vendor/html5shiv.js"></script>
    <script src="/demo/Public/js/vendor/respond.min.js"></script>
    <![endif]-->
    
</head>
<body>

    <div class="clearfix well-sm">
        <ol class="breadcrumb pull-left">
          <li><a href="<?php echo U('Index/index');?>">首页</a></li>
          <li><a href="javascript:">测试123列表</a></li>
        </ol>
        <a class='btn btn-primary btn-wide pull-right fui-plus' href="<?php echo U('edit',array('page'=>$page,'rows'=>$rows));?>" >&nbsp;添加测试123</a>
    </div>
    
    <table class="table table-hover table-striped">
        <thead>
            <tr>
                <th>实得分</th>

                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <?php  $limit = $rows; if($page >1){ $limit=($page-1)*$rows . "," . $rows; }else{ $limit = $rows; } $model = D("Test"); $result = $model->field("")->join("")->where("")->order("")->limit("$limit")->select(); foreach ($result as $v):?><tr>
                    <td><?php echo ($v["demo"]); ?></td>

                    <td>
                        <a class="fui-new" href="<?php echo U('edit',array('id'=>$v['id'],'page'=>$page,'rows'=>$rows));?>">&nbsp;编辑</a>
                        <a class="fui-cross" href="<?php echo U('del',array('id'=>$v['id'],'page'=>$page,'rows'=>$rows));?>">&nbsp;删除</a>
                    </td>
                </tr><?php  endforeach; if(1){ $total = $model->where("")->count(); $Page = new \Think\Page($total,$rows); $page_str = $Page->show(); }?>
        </tbody>
    </table>
    <div class="text-center">
        <?php echo ($page_str); ?>
    </div>

<script src="/demo/Public/js/vendor/jquery.min.js"></script>
<!--提醒升级浏览器-->
<!--[if lt IE 9]>
<script src="/demo/Public/js/remind.js"></script>
<![endif]-->
<script src="/demo/Public/js/vendor/video.js"></script>
<script src="/demo/Public/js/flat-ui.min.js"></script>

</body>
</html>